﻿using System;
using System.IO;

namespace TfsGiggle.Core
{
    /// <summary>
    /// VersionControl item
    /// </summary>
    public interface IItem
    {
        /// <summary>
        /// id
        /// </summary>
        int ChangesetId { get; }

        /// <summary>
        /// Stream the file
        /// </summary>
        /// <returns></returns>
        Stream DownloadFile();

        /// <summary>
        /// File encoding
        /// </summary>
        int Encoding { get; }

        /// <summary>
        /// Server path
        /// </summary>
        string ServerItem { get; }

        /// <summary>
        /// When was i checked in
        /// </summary>
        DateTime CheckinDate { get; }

        /// <summary>
        /// VersionControlServer
        /// </summary>
        IVersionControlServer VersionControlServer { get; }
    }
}
